package no.nordicsemi.android.nrfmesh.auth.data.db;

import androidx.room.Entity;
import androidx.room.ForeignKey;
import androidx.room.Index;
import androidx.room.PrimaryKey;

@Entity(tableName = "user_profiles",
        foreignKeys = @ForeignKey(entity = Account.class, parentColumns = "id",
                childColumns = "accountId", onDelete = ForeignKey.CASCADE),
        indices = @Index("accountId"))
public class UserProfile {
    @PrimaryKey(autoGenerate = true) public long id;
    public long accountId;

    // 资料：姓名 / 性别 / 年龄
    public String name;
    public String gender;  // "M"|"F"|"O"
    public Integer age;
}
